<!DOCTYPE HTML>
<html>

<head>
    <meta charset="utf-8">
    <title>设备巡检</title>
    <meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0" />
    <meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
    <link rel="stylesheet" type="text/css" href="../css/api.css" />
    <link rel="stylesheet" type="text/css" href="../css/aui.css" />
    <link rel="stylesheet" type="text/css" href="../css/iconfont.css" />
    <link rel="stylesheet" type="text/css" href="css/form.css" />
    <link rel="stylesheet" type="text/css" href="css/comm.css" />
    <link rel="stylesheet" type="text/css" href="css/plantasklist.css" />
    <link rel="stylesheet" type="text/css" href="css/plandevicetaskdetail.css" />
    <link rel="stylesheet" type="text/css" href="css/editStyle.css" />
    <link rel="stylesheet" type="text/css" href="../script/mui/mui.picker.min.css" />
    <link rel="stylesheet" type="text/css" href="../script/mui/mui.reset.css" />
</head>

<body>
    <div id="app" v-cloak>
        <!-- aui_formbox -->
        <div class=" boxarea edit ">
            <!-- aui_formitem -->
            <div class="aui_formitem">
                <div class="aui_formtitle">任务类型</div>
                <div class="aui_formcontent">
                    <label class="label-radio" v-on:click="do_select_plantype(1)">
                        <input class="aui-radio" style="margin-right: 10px; border-radius: 20px;" type="radio" name="PlanType" v-bind:checked="newform.PlanType==1">巡检
                    </label>
                    <label class="label-radio" v-on:click="do_select_plantype(2)">
                        <input class="aui-radio" style="margin-right: 10px; border-radius: 20px;" type="radio" name="PlanType" v-bind:checked="newform.PlanType==2">维保
                    </label>
                </div>
            </div>
            <div class="aui_formitem">
                <div class="aui_formtitle">所属项目</div>
                <div class="aui_formcontent">
                    <!--<select class="choose" v-model="newform.ProjectID" @change="do_selectProject" style="direction: rtl">
                        <option v-for="item in ProjectList" v-bind:value="item.ID" >
                          {{item.Name}}
                        </option>
                    </select>
                    <i class="icon iconfont icon-xiangyoujiantou"></i>-->
                    <input class="choose" id="chooseproject" v-model="newform.ProjectName" readonly="readonly" type="text" placeholder="请选择">
                    <i class="icon iconfont icon-xiangyoujiantou"></i>
                </div>
            </div>
            <div class="aui_formitem">
                <div class="aui_formtitle">设备名称</div>
                <div class="aui_formcontent" v-on:click="do_choose_device()">
                    <input class="choose" v-model="newform.DeviceName" readonly="readonly" type="text" placeholder="请选择">
                    <i class="icon iconfont icon-xiangyoujiantou"></i>
                </div>
            </div>
            <div class="aui_formitem">
                <div class="aui_formtitle">设备编码</div>
                <div class="aui_formcontent">
                    <input v-model="newform.DeviceNo" style="color: #344356;" readonly="readonly" type="text" placeholder="选择设备后获取">
                </div>
            </div>
            <div class="aui_formitem">
                <div class="aui_formtitle">规格型号</div>
                <div class="aui_formcontent">
                    <input v-model="newform.ModelNo" style="color: #344356;" readonly="readonly" type="text" placeholder="选择设备后获取">
                </div>
            </div>
            <div class="aui_formitem">
                <div class="aui_formtitle">存放位置</div>
                <div class="aui_formcontent">
                    <input v-model="newform.DeviceLocationPlace" style="color: #344356;" readonly="readonly" type="text" placeholder="选择设备后获取">
                </div>
            </div>
            <div class="aui_formitem">
                <div class="aui_formtitle">负责人</div>
                <div class="aui_formcontent">
                    <input style="color: #344356;" v-model="newform.InChargeManName" readonly="readonly" type="text">
                </div>
            </div>
            <div class="aui_formitem">
                <div class="aui_formtitle">操作时间</div>
                <div class="aui_formcontent">
                    <input style="color: #344356;" v-model="newform.CheckTime" readonly="readonly" type="text">
                </div>
            </div>

        </div>
        <div class="posibox">
            <div class="posiicon">
                <i class="icon iconfont icon-dizhi"></i>
            </div>
            <div class="posicontent">{{newform.GPSLocation}}</div>
            <div class="posibtn" v-on:click="StartBmap()">
                <i class="icon iconfont icon-shuaxin2-copy-copy"></i>
            </div>
        </div>
        <!-- v-if="standardlist.length>0" -->
        <div class="boxarea edit equipment_list" v-if="standardlist.length>0">
            <div class="equipment_title">巡检标准</div>

            <!-- loop -->
            <div class="equipment_list_box" v-for="item in standardlist">
                <div class="equipment_list_box_term">{{item.StandardName}}</div>
                <div class="equipment_list_box_term_input">
                    <label class="label_radio" v-on:click="select_active(item,1)">
                        <input class="aui-radio" type="radio" v-bind:name="item.ID+'normal'" v-bind:checked="item.CheckStatus==1">
                        正常
                    </label>
                    <label class="label_radio" v-on:click="select_active(item,2)">
                        <input class="aui-radio" type="radio" v-bind:name="item.ID+'normal'" v-bind:checked="item.CheckStatus==2">
                        异常
                    </label>
                </div>
            </div>
            <!-- loop -->
        </div>
        <div class="boxarea edit equipment_result" v-if="newform.DeviceID>0">
            <div class="equipment_result_title">
                <div class="equipment_title">巡检结果</div>
                <div class="equipment_result_title_input">
                    <div>
                        <label class="label_radio" v-on:click="select_all_active(1)">
                            <input class="aui-radio" type="radio" name="allnormal" v-bind:checked="newform.CheckStatus==1">
                            正常
                        </label>
                        <label class="label_radio" v-on:click="select_all_active(2)">
                            <input class="aui-radio" type="radio" name="allnormal" v-bind:checked="newform.CheckStatus==2">
                            异常
                        </label>
                    </div>
                </div>
                <div class="cl"></div>
            </div>
            <div class="equipment_result_edit">
                <div class="aui_formtitle contentdec pl10">情况说明</div>
                <div class="aui-list-item-inner">
                    <div class="aui-list-item-input input-pad">
                        <textarea placeholder="请填写详细的情况说明(选填信息)" v-model="newform.TaskCompleteContent" style="height: 6rem; font-size: 0.7rem;"></textarea>
                    </div>
                </div>
            </div>
            <div class="imglist_box">
                <div class="imglist_item" v-for="(item,index) in imglist">
                    <img v-on:click="do_viewimages(index)" class="imgitem ml4" v-bind:src="item.url" />
                    <img v-on:click="remove_img(item.index)" class="onmouse_close" src="../image/close_mouseover.svg" />
                    <!-- <i v-on:click="remove_img(item.index)" class="icon iconfont icon-chushaixuanxiang iconremove"></i> -->
                </div>
                <div v-if="form.TaskStatus!=3&&imglist.length<4" class="imglist_item ml4">
                    <div class="img_plusbox">
                        <img v-on:click="choose_picture()" src="../image/photo_image.svg" />
                        <!-- <i v-on:click="choose_picture()" class="icon iconfont icon-addApp"></i> -->
                    </div>
                    <span>最多支持{{maxuploadcount}}张</span>
                </div>
            </div>
            <div class="cl"></div>
            <!-- <div class="hide_height"></div> -->
        </div>
        <div class="bottom">
            <div class="aui_bottombtn" v-on:click="do_save()">保存</div>
        </div>
    </div>
</body>
<script type="text/javascript " src="../script/api.js "></script>
<script type="text/javascript " src="../script/vue.js "></script>
<script type="text/javascript" src="../script/config.js"></script>
<script type="text/javascript" src="../script/common.js"></script>
<script type="text/javascript" src="../script/mui/mui.min.js"></script>
<script type="text/javascript" src="../script/mui/mui.picker.min.js"></script>
<script type="text/javascript" src="../script/mui/mui.poppicker.js"></script>
<script type="text/javascript" src="../script/aui-toast.js"></script>
<script type="text/javascript" src="../script/aui-tab.js"></script>
<script type="text/javascript" src="../script/aui-scroll.js"></script>
<script type="text/javascript" src="../script/aui-popup.js"></script>
<script type="text/javascript " src="../script/moment/moment.js"></script>
<script type="text/javascript " src="js/equipment_add.js"></script>

</html>